package com.netease.nim.uikit.xpopup.popuview

import android.content.Context
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.lxj.xpopup.core.BottomPopupView
import www.wen.com.common.R
import www.wen.com.common.lib.extension.setOnClickListenerAgency
import www.wen.com.common.lib.helper.ResultUiCallBack


/**
 * @author WEN
 * @Description:长按底部弹出朋友互动的弹窗:如 私信、添加好友、删除好友等
 * @date 2021/3/3 14:53
 */
abstract class BottomMutualFriendsOptionPopupView(
    context: Context,
    private val resultCallBack: ResultUiCallBack<Any>,
) : BottomPopupView(context), View.OnClickListener {

    private lateinit var ivMore: View

    private lateinit var ivAvatar: ImageView

    private lateinit var tvNickname: TextView

    private lateinit var llRefer: View

    private lateinit var llMakeFriends: View

    private lateinit var llPrivateMessage: View

    private lateinit var clMore: View

    override fun getImplLayoutId(): Int = R.layout.popupview_user_manipulation_menu

    override fun onCreate() {
        super.onCreate()
        ivMore = findViewById(R.id.ivMore)
        ivAvatar = findViewById(R.id.ivAvatar)
        llRefer = findViewById(R.id.llRefer)
        llMakeFriends = findViewById(R.id.llMakeFriends)
        llPrivateMessage = findViewById(R.id.llPrivateMessage)
        clMore = findViewById(R.id.clMore)
        setOnClickListenerAgency(this, ivMore, llMakeFriends, llPrivateMessage)
    }

    override fun onClick(v: View) {

        when(v.id){

        }

        resultCallBack(v, Object(),this)
    }

}


